package cn.yitun.chat.yitunservermanagecore.general.manage.common.util;

/**
 * date 2018-07-17 22:10:46<br>
 * description
 * 
 * @author yitun<br>
 * @since
 */
public class MenuUtil {

	/**
	 * 处理@PermissionMapping 传递的url
	 * @param urlPath
	 * @param space
	 * @return
	 */
	public static String dealUrlPath(String urlPath, String space) {
		String url = "";
		if (null != urlPath) {
			if (urlPath.startsWith("/")) {
				urlPath = urlPath.substring(1, urlPath.length());
			}
			if (null != space) {
                url = urlPath.replace("/", space);
			}
		}
		return url;
	}
}
